<template>
  <div id="app">
    <INDEX/>
  </div>
</template>

<script>
import INDEX from './components/index.vue'

export default {
  name: 'app',
  components: {
    INDEX
  },
  data() {
    return {
    }
  },
  created() {
    let url = window.location.href;
    if (new RegExp(".*\\b\\b(\\s*\=([^&]+)).*", "gi").test(url)) {
      let pId = url.split("?")[1].split("&")[0].split("=")[1]
      pId = decodeURI(pId)
      this.$store.commit('SET_PID', parseInt(pId))
    }
  }
}
</script>

<style>
@import "./assets/css/main.css";
@import "./assets/css/util.css";
@import "./assets/css/animations.css";
</style>
